package com.zhoug.demo.zxing;

import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;

/**
 * @author: zhoug
 * @since: 2025-05-26
 */
public class TestSearchActivity extends MyBaseActivity {
    private Button mBtnResult;

    @Override
    protected int getLayoutResId() {
        return R.layout.test_search_activity;
    }

    @Override
    protected void findViews() {

        mBtnResult = findViewById(R.id.btn_result);
    }

    @Override
    protected void onCreate1(Bundle savedInstanceState) {
        mBtnResult.setOnClickListener(v -> {
            Intent result = new Intent();
            result.putExtra("resultData", "你好测试!");
            setResult(RESULT_OK, result);
            finish();
        });
    }

}
